/**
 * 数据字典表 api 封装
 *
 * @Author:    zzb
 * @Date:      2025-01-23 04:08:26
 */
import { postRequest, getRequest } from '/@/lib/axios'

export const dataDictionariesApi = {
  /**
   * 分页查询  @author  zzb
   */
  queryPage: (param) => {
    return postRequest('/b-operation/data_dictionary/page', param)
  },

  /**
   * 增加  @author  zzb
   */
  add: (param) => {
    return postRequest('/b-operation/data_dictionary/insert', param)
  },

  /**
   * 修改  @author  zzb
   */
  update: (param) => {
    return postRequest('/b-operation/data_dictionary/update', param)
  },
  /**
   * id查找单个  @author  zzb
   */
  findOne: (param) => {
    return postRequest('/b-operation/data_dictionary/find_id', param)
  },
  /**
   * code查找单个  @author  zzb
   */
  findCode: (param) => {
    return postRequest('/b-operation/data_dictionary/find_code', param)
  },
  /**
   * 删除  @author  zzb
   */
  delete: (param) => {
    return postRequest('/b-operation/data_dictionary/delete', param)
  },
}
